package com.dream.wukong.platform.system.user.controller;

import com.dream.wukong.platform.system.user.feign.FeignPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @Author: wuyichao
 * @Description:
 * @Date: Created in 10:28 2018/9/7.
 * @Modified:
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    FeignPayService feignPayService;

    @Autowired
    RestTemplate restTemplate;

    @RequestMapping("/test")
    public String test(){
//        return restTemplate.getForObject("http://wukong-business/pay",String.class);
        return feignPayService.pay();
    }




}
